
const baseController= (fn: () => Promise<any>) => {
  try {
    fn();
  } catch (e) {
    throw {
      code: "3001",
      e
    };
  }
}

export {baseController}
